<?php


namespace App\controllers\admin;


use App\controllers\Base;
use Consts\RedisKey;
use Helper\Config;
use Helper\Output;
use Helper\Mysql;
use Firebase\JWT\JWT;
use Helper\Redis;
use Helper\Reg;
use Middleware\AuthMiddleware;
use Inhere\Validate\Validation;

class Index extends Base
{

    /**
     * 获取菜单
     * @param $request
     * @param $response
     * @return false|string
     */
    public function getMenus($request, $response){

        $menus = AuthMiddleware::getInstance()->getMenus($this->getRoleId());

        return Output::json(200,$menus);

    }



}